<template>
  <div class="bg">
    <el-container>
        <el-header><Header/></el-header>
        <el-main>
          <transition name="slide-fade">
            <router-view></router-view>
          </transition>
        </el-main>
    </el-container>
    <login-user></login-user>
  </div>
</template>

<script>
import Header from '@/components/Header.vue';
import LoginUser from '@/components/Login.vue';
export default {
  components:{
    Header,
    LoginUser
  }
}
</script>

<style lang="less" scoped>
  .el-header {
    padding: 0;
    background-color: #fff;
    color: #333;
    text-align: center;
    line-height: 40px;
    margin-bottom: 10px;
  }
  .el-main {
    width: 1380px;
    margin: 0 auto;
    min-height: 100vh;
    color: #333;
    background-color: #fff;
  }
  body > .el-container {
    margin-bottom: 40px;
  }
  .slide-fade-enter-active {
  transition: all .6s ease;
  }
  .slide-fade-enter
  /* .slide-fade-leave-active for below version 2.1.8 */ {
    transform: translateY(-40px);
    opacity: 0;
  }
</style>